<template>
    <div class="body">
    <div class="header">
      <!-- <transition-group name="test">
        <div
          v-if="showd"
          :key="1"
        >
          <img
            class="tran-img"
            src="../../assets/img/anniversary/text2.png"
            alt=""
          >
        </div>
      </transition-group> -->
      <!-- <img
        @click="ling"
        v-show="Receive"
        src="../../assets/img/anniversary/ling.png"
        class="ling"
        alt=""
      > -->
      <img
        class="tmg"
        src="../../assets/img/anniversary/bao.png"
        alt=""
      >
      <div class="six">
        <!-- 轮播two -->
        <!-- :autoplay="2000" -->
        <van-swipe
          :duration="700"
          :autoplay="5000"
          style="height:5.666667rem;"
          :show-indicators=false
        >
          <van-swipe-item
            v-for="item in lister"
            :key="item.goods_id"
          >
            <ul>
              <li
                v-for="itemr in item"
                :key="itemr.goods_id"
                @click="nav(itemr)"
              >
                <img
                  v-lazy="itemr.goods_img"
                  :key="itemr.goods_img"
                >
                <!-- <img
                  :src="itemr.goods_img"
                  alt=""
                > -->
                <div class="boxd">
                  ¥
                  <span> {{itemr.active_price}}</span>
                </div>
              </li>

            </ul>
          </van-swipe-item>
        </van-swipe>
      </div>
    </div>
    <!-- 爆品 -->
    <!-- 店主拉新 -->
    <!-- <img
      class="imgefix"
      v-show="imgefix"
      @click="showPopupone"
      src="../../assets/img/anniversary/fen.png"
      alt=""
    > -->
    <!-- 大转盘 -->
    <!-- <img
      class="imgefixd"
      @click="showPopuptwo"
      src="../../assets/img/anniversary/youe.png"
      alt=""
    > -->
    <img
      src="../../assets/img/anniversary/card1.png"
      class="super"
      alt=""
    >

    <!-- 购物卡 -->
    <div class="shopping-card">
      <ul>
        <li
          v-for="item in shopp"
          :key="item.goods_id"
          @click="nav(item)"
        >
          <div class="Toptext">
            {{item.goods_name}}
          </div>
          <img
            :src="item.goods_img"
            class="count"
            alt=""
          >
          <!-- <div class="money">
            ¥
            <span>
              {{item.active_price}}
            </span>
          </div> -->
        </li>
      </ul>
    </div>
    <van-popup
      v-model="Fixed"
      class="boxed"
    >
      <div class="backgrend">
        <div class="gui">活动规则</div>
        <ul>
          <li>1.活动时间</li>
          <li>定金支付阶段：2021年9月22日10:00-2021年9月26日23:59</li>
          <li>尾款支付阶段：2021年9月27日00:00-2021年10月08日23:59</li>
          <li>
            2.定金支付</li>
          <li> (1)活动开始后，在定金支付阶段即可进入商品预售页面购买。</li>
          <li>(2)同一ID用户仅限购买同款商品1件。</li>
          <li>(3)鉴于用户支付定金的行为将直接影响商品最终成交价格，因此定金一经支付后，非因卖家原因，用户无权申请退款，请谨慎购买。</li>

          <li>
            4.尾款支付 </li>
          <li>
            (1)定金支付时间结束后，系统将自动关闭定金支付通道，您可通过“我的-我的卡券-优惠券-去使用”进入商品页面，并于规定期间内完成尾款支付；
          </li>
          <li>
            (2)请用户确保应于2021年9月27日00:00-2021年10月08日23:59期间内完成尾款的支付，如用户逾期未完成支付操作，则定金不予退还；
          </li>
          <li>(3)本次活动中如笔记本、平板电脑、手机、电视机及其他因产品拆封、激活将无法享受退货的产品不支持七天无理由退换货。</li>

          <li>
            5.活动声明
            媛福达公司有权在法律法规准许的范围内对本次活动规则做出解释并做适当调整。如有任何疑问，烦请联系媛福达APP官方在线客服。
          </li>
        </ul>
      </div>
      <div
        class="close"
        @click="closed"
      >我知道了</div>
    </van-popup>
    <!-- 今日预售 -->
    <div class="day">
      <div class="day-one">新品预售</div>
      <div
        class="Gsgo"
        @click="GsGo"
      >预售规则</div>
      <!-- 轮播two -->
      <!-- :autoplay="2000" -->
      <van-swipe
        :duration="700"
        :autoplay="5000"
        style="height:9.6rem;"
        :show-indicators=false
      >
        <van-swipe-item
          v-for="item in atr"
          :key="item.goods_id"
        >
          <ul>
            <li
              v-for="itemr in item"
              :key="itemr.goods_id"
              @click="nav(itemr)"
            >
              <img
                class="one-hit"
                v-lazy="itemr.goods_img"
                :key="itemr.goods_img"
              >
              <!-- <img
                        class="one-hit"
                        :src="itemr.goods_img"
                        alt=""
                      > -->
              <div class="text-one"> {{itemr.goods_name}}</div>
              <div class="money-Hot">¥
                <span>{{itemr.active_price}}</span>
              </div>
              <div class="yu">预定</div>
            </li>
          </ul>
        </van-swipe-item>
      </van-swipe>
    </div>
    <!-- 品牌墙 -->
    <div class="card">
      <div class="four">
        <span class="onespan">精选大牌</span>
        <div class="twospan"></div>
        <span class="threespan">品质好货 放心购</span>
      </div>
      <!-- 品牌轮播 -->
      <!-- :autoplay="2000" -->
      <van-swipe
        :duration="700"
        :autoplay="5000"
        style="height:12.653333rem;"
        :show-indicators=true
      >
        <van-swipe-item
          v-for="item in images"
          :key="item.id"
        >
          <ul>
            <li
              v-for="itemr in item"
              :key="itemr.id"
              @click="nextTo(itemr.id)"
            >
              <img
                class="one-hit"
                :src="itemr.path"
                alt=""
              >
            </li>
          </ul>
        </van-swipe-item>
      </van-swipe>
    </div>
    <!-- 网红馆one -->
    <div class="we">
      <ul>
        <li>
          <div class="Box">
            <div class="span-one">网红馆 | 全网热卖HOT
            </div>
            <div class="box-one">
              <!-- 轮播two -->
              <!-- :autoplay="2000" -->
              <van-swipe
                :duration="700"
                :autoplay="5000"
                style="height:9.6rem;"
                :show-indicators=false
              >
                <van-swipe-item
                  v-for="item in listdev"
                  :key="item.goods_id"
                >
                  <ul>
                    <li
                      v-for="itemr in item"
                      :key="itemr.goods_id"
                      @click="nav(itemr)"
                    >
                      <img
                        class="one-hit"
                        v-lazy="itemr.goods_img"
                        :key="itemr.goods_img"
                      >
                      <!-- <img
                        class="one-hit"
                        :src="itemr.goods_img"
                        alt=""
                      > -->
                      <div class="text-one"> {{itemr.goods_name}}</div>
                      <div class="money-Hot">¥
                        <span>{{itemr.active_price}}</span>
                      </div>
                    </li>
                  </ul>
                </van-swipe-item>
              </van-swipe>
            </div>
            <div
              class="mery"
              @click="Gotwo"
            >查看更多></div>
          </div>
        </li>
        <li>
          <!-- 进口馆two -->
          <div class="Box">
            <div class="span-one">进口馆 | 甄选全球好物
            </div>

            <div class="box-one">
              <!-- 轮播two -->
              <!-- :autoplay="2000" -->
              <van-swipe
                :duration="700"
                :autoplay="5000"
                style="height:9.6rem;"
                :show-indicators=false
              >
                <van-swipe-item
                  v-for="item in one"
                  :key="item.goods_id"
                >
                  <ul>
                    <li
                      v-for="itemr in item"
                      :key="itemr.goods_id"
                      @click="nav(itemr)"
                    >
                      <!-- <img
                        class="one-hit"
                        :src="itemr.goods_img"
                        alt=""
                      > -->
                      <img
                        class="one-hit"
                        v-lazy="itemr.goods_img"
                        :key="itemr.goods_img"
                      >
                      <div class="text-one"> {{itemr.goods_name}}</div>
                      <div class="money-Hot">¥
                        <span>{{itemr.active_price}}</span>
                      </div>
                    </li>
                  </ul>
                </van-swipe-item>
              </van-swipe>
            </div>
            <div
              class="mery"
              @click="Gothree"
            >查看更多></div>
          </div>
        </li>
        <li>
          <!-- 地方馆two -->
          <div class="Box">
            <div class="span-one">地方特色馆 | 国货精选
            </div>
            <div class="box-one">
              <!-- 轮播two -->
              <!-- :autoplay="2000" -->
              <van-swipe
                :duration="700"
                :autoplay="5000"
                style="height:9.6rem;"
                :show-indicators=false
              >
                <van-swipe-item
                  v-for="item in onethree"
                  :key="item.goods_id"
                >
                  <ul>
                    <li
                      v-for="itemr in item"
                      :key="itemr.goods_id"
                      @click="nav(itemr)"
                    >
                      <!-- <img
                        class="one-hit"
                        :src="itemr.goods_img"
                        alt=""
                      > -->
                      <img
                        class="one-hit"
                        v-lazy="itemr.goods_img"
                        :key="itemr.goods_img"
                      >
                      <div class="text-one"> {{itemr.goods_name}}</div>
                      <div class="money-Hot">¥
                        <span>{{itemr.active_price}}</span>
                      </div>
                    </li>
                  </ul>
                </van-swipe-item>
              </van-swipe>
            </div>
            <div
              class="mery"
              @click="Gofour"
            >查看更多></div>
          </div>
        </li>
        <li>
          <!-- 自有馆two -->
          <div class="Box">
            <div class="span-one">自有品牌馆 | 品质放心
            </div>

            <div class="box-one">
              <!-- 轮播two -->
              <!-- :autoplay="2000" -->
              <van-swipe
                :duration="700"
                :autoplay="5000"
                style="height:9.6rem;"
                :show-indicators=false
              >
                <van-swipe-item
                  v-for="item in onefour"
                  :key="item.goods_id"
                >
                  <ul>
                    <li
                      v-for="itemr in item"
                      :key="itemr.goods_id"
                      @click="nav(itemr)"
                    >
                      <!-- <img
                        class="one-hit"
                        :src="itemr.goods_img"
                        alt=""
                      > -->
                      <img
                        class="one-hit"
                        v-lazy="itemr.goods_img"
                        :key="itemr.goods_img"
                      >
                      <div class="text-one"> {{itemr.goods_name}}</div>
                      <div class="money-Hot">¥
                        <span>{{itemr.active_price}}</span>
                      </div>
                    </li>
                  </ul>
                </van-swipe-item>
              </van-swipe>
            </div>
            <div
              class="mery"
              @click="Goone"
            >查看更多></div>
          </div>
        </li>
      </ul>
    </div>
    <!-- 类目 -->
    <div class="one">
      <van-tabs
        type="card"
        v-model="activeName"
        sticky
        animated
        color='#657BFA'
        background='transparent'
        title-active-color='#ffffff'
        title-inactive-color='#1C47AF'
        line-width='60px'
        @click="Hot"
      >
        <van-tab
          title="食品酒水"
          name="98"
        >
          <div class="add">
            <ul>
              <li
                v-for="item in hot"
                :key="item.goods_id"
                @click="nav(item)"
              >
                <img
                  class="img"
                  v-lazy="item.goods_img"
                  :key="item.goods_img"
                >
                <div class="text">
                  {{item.goods_name}}
                </div>
                <div class="money">
                  活动价¥
                  <span>{{item.active_price}}</span>
                </div>
              </li>
            </ul>
          </div>
          <div
            class="moy"
            @click="ping1"
          >查看更多></div>
        </van-tab>
        <van-tab
          title="美妆个护"
          name="99"
        >
          <div class="add">
            <ul>
              <li
                v-for="item in hot"
                :key="item.goods_id"
                @click="nav(item)"
              >
                <img
                  class="img"
                  v-lazy="item.goods_img"
                  :key="item.goods_img"
                >
                <div class="text">
                  {{item.goods_name}}
                </div>
                <div class="money">
                  活动价¥
                  <span>{{item.active_price}}</span>
                </div>
              </li>
            </ul>
          </div>
          <div
            class="moy"
            @click="ping2"
          >查看更多></div>
        </van-tab>
        <van-tab
          title="手机数码"
          name="100"
        >
          <div class="add">
            <ul>
              <li
                v-for="item in hot"
                :key="item.goods_id"
                @click="nav(item)"
              >
                <img
                  class="img"
                  v-lazy="item.goods_img"
                  :key="item.goods_img"
                >
                <div class="text">
                  {{item.goods_name}}
                </div>
                <div class="money">
                  活动价¥
                  <span>{{item.active_price}}</span>
                </div>
              </li>
            </ul>
          </div>
          <div
            class="moy"
            @click="ping3"
          >查看更多></div>
        </van-tab>
        <van-tab
          title="家用电器"
          name="101"
        >
          <div class="add">
            <ul>
              <li
                v-for="item in hot"
                :key="item.goods_id"
                @click="nav(item)"
              >
                <img
                  class="img"
                  v-lazy="item.goods_img"
                  :key="item.goods_img"
                >
                <div class="text">
                  {{item.goods_name}}
                </div>
                <div class="money">
                  活动价¥
                  <span>{{item.active_price}}</span>
                </div>
              </li>
            </ul>
          </div>
          <div
            class="moy"
            @click="ping4"
          >查看更多></div>
        </van-tab>
        <van-tab
          title="家居厨具"
          name="102"
        >
          <div class="add">
            <ul>
              <li
                v-for="item in hot"
                :key="item.goods_id"
                @click="nav(item)"
              >
                <img
                  class="img"
                  v-lazy="item.goods_img"
                  :key="item.goods_img"
                >
                <div class="text">
                  {{item.goods_name}}
                </div>
                <div class="money">
                  活动价¥
                  <span>{{item.active_price}}</span>
                </div>
              </li>
            </ul>
          </div>
          <div
            class="moy"
            @click="ping5"
          >查看更多></div>
        </van-tab>
        <van-tab
          title="电脑办公"
          name="103"
        >
          <div class="add">
            <ul>
              <li
                v-for="item in hot"
                :key="item.goods_id"
                @click="nav(item)"
              >
                <img
                  class="img"
                  v-lazy="item.goods_img"
                  :key="item.goods_img"
                >
                <div class="text">
                  {{item.goods_name}}
                </div>
                <div class="money">
                  活动价¥
                  <span>{{item.active_price}}</span>
                </div>
              </li>
            </ul>
          </div>
          <div
            class="moy"
            @click="ping6"
          >查看更多></div>
        </van-tab>
        <van-tab
          title="箱包服饰"
          name="104"
        >
          <div class="add">
            <ul>
              <li
                v-for="item in hot"
                :key="item.goods_id"
                @click="nav(item)"
              >
                <img
                  class="img"
                  v-lazy="item.goods_img"
                  :key="item.goods_img"
                >
                <div class="text">
                  {{item.goods_name}}
                </div>
                <div class="money">
                  活动价¥
                  <span>{{item.active_price}}</span>
                </div>
              </li>
            </ul>
          </div>
          <div
            class="moy"
            @click="ping7"
          >查看更多></div>
        </van-tab>
        <van-tab
          title="母婴玩具"
          name="105"
        >
          <div class="add">
            <ul>
              <li
                v-for="item in hot"
                :key="item.goods_id"
                @click="nav(item)"
              >
                <img
                  class="img"
                  v-lazy="item.goods_img"
                  :key="item.goods_img"
                >
                <div class="text">
                  {{item.goods_name}}
                </div>
                <div class="money">
                  活动价¥
                  <span>{{item.active_price}}</span>
                </div>
              </li>
            </ul>
          </div>
          <div
            class="moy"
            @click="ping8"
          >查看更多></div>
        </van-tab>
        <van-tab
          title="运动户外"
          name="106"
        >
          <div class="add">
            <ul>
              <li
                v-for="item in hot"
                :key="item.goods_id"
                @click="nav(item)"
              >
                <img
                  class="img"
                  v-lazy="item.goods_img"
                  :key="item.goods_img"
                >
                <div class="text">
                  {{item.goods_name}}
                </div>
                <div class="money">
                  活动价¥
                  <span>{{item.active_price}}</span>
                </div>
              </li>
            </ul>
          </div>
          <div
            class="moy"
            @click="ping9"
          >查看更多></div>
        </van-tab>
        <van-tab
          title="汽车用品"
          name="107"
        >
          <div class="add">
            <ul>
              <li
                v-for="item in hot"
                :key="item.goods_id"
                @click="nav(item)"
              >
                <img
                  class="img"
                  v-lazy="item.goods_img"
                  :key="item.goods_img"
                >
                <div class="text">
                  {{item.goods_name}}
                </div>
                <div class="money">
                  活动价¥
                  <span>{{item.active_price}}</span>
                </div>
              </li>
            </ul>
          </div>
          <div
            class="moy"
            @click="ping10"
          >查看更多></div>
        </van-tab>
        <van-tab
          title="营养保健"
          name="108"
        >
          <div class="add">
            <ul>
              <li
                v-for="item in hot"
                :key="item.goods_id"
                @click="nav(item)"
              >
                <img
                  class="img"
                  v-lazy="item.goods_img"
                  :key="item.goods_img"
                >
                <div class="text">
                  {{item.goods_name}}
                </div>
                <div class="money">
                  活动价¥
                  <span>{{item.active_price}}</span>
                </div>
              </li>
            </ul>
          </div>
          <div
            class="moy"
            @click="ping11"
          >查看更多></div>
        </van-tab>
      </van-tabs>
    </div>
    <!-- 三张优惠卷 -->
    <van-popup
      v-model="winthree"
      class="Box-three"
    >
      <div
        class="btn"
        @click="closeBtn"
      >我知道了</div>
    </van-popup>
    <!-- 6张优惠卷 -->
    <van-popup
      v-model="winsix"
      class="Box-six"
    >
      <div
        class="btn"
        @click="closeBtnsix"
      >我知道了</div>
    </van-popup>
    <!-- 微信遮罩 -->
    <div
      @touchmove.prevent
      class="rigth"
      v-if="show"
    >
      <img
        src="../../assets/img/wei_20210307160153.png"
        alt=""
      >
    </div>
    <!-- 置顶 -->
    <div
      class="totop"
      id="totop"
      @click="backTop"
      v-show="btnFlag"
    >
      <!-- <i class="iconfont icon-zhiding"></i> -->
    </div>
    <div class="banner">
      <img
        src="../../assets/img/share/x.png"
        class="imgone"
        alt=""
      >
      <img
        src="../../assets/img/share/yuan.png"
        class="imgtwo"
        alt=""
      >
      <span class="spanone">打开媛福达APP
        <span class="spantwo">购物方便优惠多</span>
      </span>
      <div
        class="btn"
        @click="Gone"
      >下载</div>
      <!-- @click="Gonext" -->
      <div
        id="wekupButton"
        class="btn"
      >打开</div>
    </div>
  </div>
</template>

<script>
import bridge from '../../js/js1'
import { index, judge, Recharge, receivetwo } from '@/api/index'
import { share } from '../../js/wechat'
// import Vconsole from 'vconsole'
// const vConsole = new Vconsole()
import { getSystem, openApp, getUrlQuery, parseKeyValue } from '../../js/js'
export default {
  // 组件名称
  name: '',
  // 局部注册的组件
  components: {},
  // 组件参数 接收来自父组件的数据
  props: {},
  // 组件状态值
  data () {
    return {
      Fixed: false,
      idcong: [],// 优惠卷id
      Receive: false,// 是否领取过优惠卷
      imgefix: false,//店主拉新入口显示
      showd: false,//淡入淡出效果
      list: [],
      lister: [],
      listdev: [],
      show: false,
      system: getSystem(),
      atr: [],
      atrdev: [],
      listerdev: [],
      one: [],
      atrthree: [],
      onethree: [],
      atrfour: [],
      onefour: [],
      hot: [],
      shopp: [],
      share: true,
      scrollTop: 0,
      btnFlag: false,
      showTips: false,
      activeName: '98',
      winthree: false,//3张优惠卷弹窗
      winsix: false,//6张优惠卷弹窗
      images: [
        [{ path: require('../../assets/img/anniversary/ping/1.1.png'), id: 114 },
        { path: require('../../assets/img/anniversary/ping/1.2.png'), id: 135 },
        { path: require('../../assets/img/anniversary/ping/1.3.png'), id: 124 },
        { path: require('../../assets/img/anniversary/ping/2.1.png'), id: 125 },
        { path: require('../../assets/img/anniversary/ping/2.2.png'), id: 132 },
        { path: require('../../assets/img/anniversary/ping/2.3.png'), id: 119 },
        { path: require('../../assets/img/anniversary/ping/3.1.png'), id: 133 },
        { path: require('../../assets/img/anniversary/ping/3.2.png'), id: 118 },
        { path: require('../../assets/img/anniversary/ping/3.3.png'), id: 122 },
        ], [
          { path: require('../../assets/img/anniversary/ping/4.1.png'), id: 113 },
          { path: require('../../assets/img/anniversary/ping/4.2.png'), id: 115 },
          { path: require('../../assets/img/anniversary/ping/4.3.png'), id: 127 },
          { path: require('../../assets/img/anniversary/ping/5.1.png'), id: 117 },
          { path: require('../../assets/img/anniversary/ping/5.2.png'), id: 134 },
          { path: require('../../assets/img/anniversary/ping/5.3.png'), id: 131 },
          { path: require('../../assets/img/anniversary/ping/6.1.png'), id: 112 },
          { path: require('../../assets/img/anniversary/ping/6.2.png'), id: 123 },
          { path: require('../../assets/img/anniversary/ping/6.3.png'), id: 126 },
        ]
      ]
    }
  },
  destroyed () {
    window.removeEventListener('scroll', this.scrollToTop);
  },
  // 计算属性
  computed: {},
  // 侦听器
  watch: {},
  // 生命周期钩子   注：没用到的钩子请自行删除
  /**
  * 组件实例创建完成，属性已绑定，但DOM还未生成，$ el属性还不存在
  */
  created () {
    this.createyu()
    this.create()
    this.createday()
    this.createzi()
    this.createtwo()
    this.createthree()
    this.createfour()
    this.shopping()
    this.Hot(this.activeName)
    this.Token()
    this.system = getSystem()
    // if (this.system.wechat) this.showTips = true
    if (!this.system.yfd && !this.system.wechat) {
      if (this.system.iOS9 || this.system.android) {
        ULink([{
          id: 'usr1anivh5aa8uq6', // 后台生成的裂变活动LinkID
          data: {
            path: 'webview',
            webUrl: 'https://download.yuanfuda933.com/h5/other2.html#/anniversarye',// 活动地址
            andUrl: 'https://download.yuanfuda933.com/h5/other2.html#/anniversarye'// 活动地址
            // extraData: `{id:${this.id},uid:${this.uid}`,
            // extraData: {
            //   id: this.id,
            //   uid: this.uid,
            //   tid: this.tid
            // }
          }, /* 自定义参数，选填 */
          selector: '#wekupButton',
          useOpenInBrowerTips: 'default',
          proxyOpenDownload: function (defaultAction, LinkInstance) {
            window.location.href = LinkInstance.solution.downloadUrl
          }
        }])
      }
    } else {
      this.getToken(token => {
        this.$store.commit('setUser', token)
      })
    }
  },
  /**
  * el 被新创建的 vm.el 替换，并挂载到实例上去之后调用该钩子。
  * 如果 root 实例挂载了一个文档内元素，当 mounted 被调用时 vm.el 也在文档内。
  */
  mounted () {
    this.toph()
    window.addEventListener('scroll', this.scrollToTop)
    share({
      title: '媛福达2周年庆返场狂欢！',
      desc: '新品预售，全场低至5.5折起，购物卡购卡赠金大升级，最高购600送370赠金',
      imgUrl: 'https://download.yuanfuda933.com/h5/images/anniversary.png',
      shareUrl: 'https://download.yuanfuda933.com/h5/other2.html#/anniversary',
    })
    this.Show()
  },
  // 组件方法
  methods: {
    // 规则弹窗
    GsGo () {
      this.Fixed = true
    },
    // 关闭
    closed () {
      this.Fixed = false
    },
    toph () {
      if (this.system.wechat) {
        this.show = true
        return false
      } else {
        this.show = false
      }
    },
    Gone () {
      if (this.system.iOS) {
        this.href('https://itunes.apple.com/cn/app/id1542709823?mt=8')
      } else if (this.system.android) {
        window.location.href = 'https://yuanfuda933.oss-cn-zhangjiakou.aliyuncs.com/yfdMall_1_v1.0.1.apk'
      }
    },
    // 传递品牌id
    nextTo (id) {
      if (this.system.wechat) {
        this.show = true
        return false
      } else {
        this.show = false
      }
      if (this.system.iOS) {
        this.href('https://itunes.apple.com/cn/app/id1542709823?mt=8')
        return false
      }
      // 直接调用$router.push 实现携带参数的跳转
      this.$router.push({
        path: '/particulars',
        query: {
          id: id
        }
      })
    },
    // 获取拉新人数-----判断是否店主 显示 入口
    Getpople () {
      const tokened = this.$store.state.gettoken.token
      // console.log(tokened);
      if (tokened) {
        judge().then(res => {
          console.log(res);
          // 如果是店主就显示入口
          if (res.data.code == 200) {
            this.imgefix = true
          }
        }).catch(err => {
          console.log(err);
        })
      } else {
        console.log('请先登录！');
        return false
      }
    },
    // 获取领取优惠卷id ---- 判断是否已经领取 隐藏 领取按钮
    cong () {
      const tokened = this.$store.state.gettoken.token
      if (tokened) {
        Recharge().then(res => {
          console.log(res);
          // 判定是否领取关闭领取按钮
          if (res.data.data.isReceive == false) {
            this.Receive = true
          }
          // 获取id
          const obj = res.data.data.list
          const resd = []
          obj.forEach((i, index) => {
            resd.push(res.data.data.list[index].id)
          });
          console.log(resd);
          this.idcong = resd
        }).catch(err => {
          console.log('接口出错');
          console.log(err);
        })
      } else {
        console.log('失败没有token了');
      }
    },
    //  领取优惠卷
    ling () {
      if (this.system.wechat) {
        this.show = true
        return false
      } else {
        this.show = false
      }
      if (this.system.iOS) {
        this.href('https://itunes.apple.com/cn/app/id1542709823?mt=8')
        return false
      }
      const tokened = this.$store.state.gettoken.token
      const system = getSystem()
      if (system.yfd) {
        if (tokened) {
          receivetwo(
            this.idcong
          ).then(res => {
            if (res.data.code == 200) {
              if (this.idcong.length == 3) {
                // 弹出弹
                this.winthree = true
              } else {
                this.winsix = true
              }
              this.$toast(res.data.msg);
            } else {
              this.$toast(res.data.msg);
            }
            console.log(res.data.msg);
          }).catch(err => {
            console.log(err);
          })
        } else {
          this.$toast("领取失败，请先登录！");
          if (system.android) {
            console.log('and 登录')
            bridge.dsCall('h5Login', '', e => {
              callback(e)
            })
          }
          if (system.iOS) {
            console.log('ios 登录')
            bridge.iosCall('h5Login', '', e => {
              callback(e)
            })
          }
        }
      } else {
        this.$toast("请先登录APP！");
      }
    },
    // 关闭优惠卷弹窗
    closeBtn () {
      this.winthree = false
    },
    closeBtnsix () {
      this.winsix = false
    },
    // 固定跳转
    showPopupone () {
      if (this.system.wechat) {
        this.show = true
        return false
      } else {
        this.show = false
      }
      if (this.system.iOS) {
        this.href('https://itunes.apple.com/cn/app/id1542709823?mt=8')
        return false
      }
      window.location.href = 'https://download.yuanfuda933.com/h5/other2.html#/fen'
    },
    showPopuptwo () {
      if (this.system.wechat) {
        this.show = true
        return false
      } else {
        this.show = false
      }
      window.location.href = 'https://download.yuanfuda933.com/h5/other2.html#/youe'
    },
    // 淡入淡出
    Show () {
      this.showd = !this.showd;
    },
    // 查看更多跳转
    Goone () {
      if (this.system.wechat) {
        this.show = true
        return false
      } else {
        this.show = false
      }
      if (this.system.iOS) {
        this.href('https://itunes.apple.com/cn/app/id1542709823?mt=8')
        return false
      }
      window.location.href = 'https://download.yuanfuda933.com/h5/other2.html#/pagingone'
    },
    Gotwo () {
      if (this.system.wechat) {
        this.show = true
        return false
      } else {
        this.show = false
      }
      if (this.system.iOS) {
        this.href('https://itunes.apple.com/cn/app/id1542709823?mt=8')
        return false
      }
      window.location.href = 'https://download.yuanfuda933.com/h5/other2.html#/pagingtwo'
    },
    Gothree () {
      if (this.system.wechat) {
        this.show = true
        return false
      } else {
        this.show = false
      }
      if (this.system.iOS) {
        this.href('https://itunes.apple.com/cn/app/id1542709823?mt=8')
        return false
      }
      window.location.href = 'https://download.yuanfuda933.com/h5/other2.html#/pagingthree'
    },
    Gofour () {
      if (this.system.wechat) {
        this.show = true
        return false
      } else {
        this.show = false
      }
      if (this.system.iOS) {
        this.href('https://itunes.apple.com/cn/app/id1542709823?mt=8')
        return false
      }
      window.location.href = 'https://download.yuanfuda933.com/h5/other2.html#/pagingfour'
    },
    Token () {
      this.getToken(token => {
        this.$store.commit('getUser', token)
      })
      let that = this
      setTimeout(function () {
        that.Getpople()
        that.cong()
      }, 2000)
    },
    getToken (callback) {
      // console.log(callback);
      const system = getSystem()
      if (system.android) {
        bridge.dsCall('getToken', '', res => {
          if (typeof res === 'string') res = JSON.parse(res)
          callback(res)
        })
        return
      }
      if (system.iOS) {
        bridge.iosReg('myTokenmethd', res => {
          const token = parseKeyValue(res)
          // const token = qs.parse(res)
          callback(token)
        })
        bridge.iosCall('getToken', '', res => { })
      }
    },
    ping1 () {
      if (this.system.wechat) {
        this.show = true
        return false
      } else {
        this.show = false
      }
      if (this.system.iOS) {
        this.href('https://itunes.apple.com/cn/app/id1542709823?mt=8')
        return false
      }
      window.location.href = 'yfd://yfdmall:8080/homePage?categoryId=360'
    },
    ping2 () {
      if (this.system.wechat) {
        this.show = true
        return false
      } else {
        this.show = false
      }
      if (this.system.iOS) {
        this.href('https://itunes.apple.com/cn/app/id1542709823?mt=8')
        return false
      }
      window.location.href = 'yfd://yfdmall:8080/homePage?categoryId=99'
    },
    ping3 () {
      if (this.system.wechat) {
        this.show = true
        return false
      } else {
        this.show = false
      }
      if (this.system.iOS) {
        this.href('https://itunes.apple.com/cn/app/id1542709823?mt=8')
        return false
      }
      window.location.href = 'yfd://yfdmall:8080/homePage?categoryId=98'
    },
    ping4 () {
      if (this.system.wechat) {
        this.show = true
        return false
      } else {
        this.show = false
      }
      if (this.system.iOS) {
        this.href('https://itunes.apple.com/cn/app/id1542709823?mt=8')
        return false
      }
      window.location.href = 'yfd://yfdmall:8080/homePage?categoryId=97'
    },
    ping5 () {
      if (this.system.wechat) {
        this.show = true
        return false
      } else {
        this.show = false
      }
      if (this.system.iOS) {
        this.href('https://itunes.apple.com/cn/app/id1542709823?mt=8')
        return false
      }
      window.location.href = 'yfd://yfdmall:8080/homePage?categoryId=404'
    },
    ping6 () {
      if (this.system.wechat) {
        this.show = true
        return false
      } else {
        this.show = false
      }
      if (this.system.iOS) {
        this.href('https://itunes.apple.com/cn/app/id1542709823?mt=8')
        return false
      }
      window.location.href = 'yfd://yfdmall:8080/homePage?categoryId=372'
    },
    ping7 () {
      if (this.system.wechat) {
        this.show = true
        return false
      } else {
        this.show = false
      }
      if (this.system.iOS) {
        this.href('https://itunes.apple.com/cn/app/id1542709823?mt=8')
        return false
      }
      window.location.href = 'yfd://yfdmall:8080/homePage?categoryId=378'
    },
    ping8 () {
      if (this.system.wechat) {
        this.show = true
        return false
      } else {
        this.show = false
      }
      if (this.system.iOS) {
        this.href('https://itunes.apple.com/cn/app/id1542709823?mt=8')
        return false
      }
      window.location.href = 'yfd://yfdmall:8080/homePage?categoryId=101'
    },
    ping9 () {
      if (this.system.wechat) {
        this.show = true
        return false
      } else {
        this.show = false
      }
      if (this.system.iOS) {
        this.href('https://itunes.apple.com/cn/app/id1542709823?mt=8')
        return false
      }
      window.location.href = 'yfd://yfdmall:8080/homePage?categoryId=364'
    },
    ping10 () {
      if (this.system.wechat) {
        this.show = true
        return false
      } else {
        this.show = false
      }
      if (this.system.iOS) {
        this.href('https://itunes.apple.com/cn/app/id1542709823?mt=8')
        return false
      }
      window.location.href = 'yfd://yfdmall:8080/homePage?categoryId=375'
    },
    ping11 () {
      if (this.system.wechat) {
        this.show = true
        return false
      } else {
        this.show = false
      }
      if (this.system.iOS) {
        this.href('https://itunes.apple.com/cn/app/id1542709823?mt=8')
        return false
      }
      window.location.href = 'yfd://yfdmall:8080/homePage?categoryId=387'
    },
    // 点击图片回到顶部方法，加计时器是为了过渡顺滑
    backTop () {
      const that = this
      let timer = setInterval(() => {
        let ispeed = Math.floor(-that.scrollTop / 5)
        document.documentElement.scrollTop = document.body.scrollTop = that.scrollTop + ispeed
        if (that.scrollTop === 0) {
          clearInterval(timer)
        }
      }, 16)
    },
    // 为了计算距离顶部的高度，当高度大于60显示回顶部图标，小于60则隐藏
    scrollToTop () {
      const that = this
      let scrollTop = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop
      that.scrollTop = scrollTop
      // console.log(that.scrollTop);
      if (that.scrollTop > 800) {
        that.btnFlag = true
      } else {
        that.btnFlag = false
      }
    },
    // 购物卡
    async shopping () {
      try {
        const res = await index({
          id: 111
        })
        console.log(res.data.data.types);
        this.shopp = res.data.data.types[0].goods
      } catch (err) {
        console.log('错误');
      }
    },
    // 预售
    async create () {
      try {
        const res = await index({
          id: 93
        })
        var atrdev = res.data.data.types[0].goods
        console.log(res.data.data.types);
        var resultdev = []
        for (var i = 0; i < atrdev.length; i += 3) {
          resultdev.push(atrdev.slice(i, i + 3));
        }
        this.lister = resultdev
        console.log(this.lister);
      } catch (err) {
        console.log('错误');
      }
    },
    // 预售
    async createyu () {
      try {
        const res = await index({
          id: 92
        })
        var atrdev = res.data.data.types[0].goods
        console.log(res.data.data.types);
        // this.list = res.data.data.types[0].goods.slice(0, 2)
        // var atrdev = res.data.data.types[0].goods.slice(2, 8)
        var resultdev = []
        for (var i = 0; i < atrdev.length; i += 6) {
          resultdev.push(atrdev.slice(i, i + 6));
        }
        this.atr = resultdev
        // this.listdev = res.data.data.types[1].goods
      } catch (err) {
        console.log('错误');
      }
    },
    // 今日必买
    async createday () {
      try {
        const res = await index({
          id: 109
        })
        this.list = res.data.data.types[0].goods
        console.log(res.data.data.types);
      } catch (err) {
        console.log('错误');
      }
    },
    //网红馆
    async createzi () {
      try {
        const res = await index({
          id: 94
        })
        // this.atr = res.data.data.types[0].goods.slice(0, 4)
        var atrdev = res.data.data.types[0].goods
        console.log(res.data.data.types);
        var resultdev = []
        for (var i = 0; i < atrdev.length; i += 6) {
          resultdev.push(atrdev.slice(i, i + 6));
        }
        this.listdev = resultdev
      } catch (err) {
        console.log('错误');
      }
    },
    // 进口馆
    async createtwo () {
      try {
        const res = await index({
          id: 95
        })
        // this.atrdev = res.data.data.types[0].goods.slice(0, 4)
        var atrdev = res.data.data.types[0].goods
        // console.log(res.data.data.types[0].goods);
        var resultdev = []
        for (var i = 0; i < atrdev.length; i += 6) {
          resultdev.push(atrdev.slice(i, i + 6));
        }
        this.one = resultdev
      } catch (err) {
        console.log('错误');
      }
    },
    // 地方特色馆
    async createthree () {
      try {
        const res = await index({
          id: 97
        })
        // this.atrthree = res.data.data.types[0].goods.slice(0, 4)
        var atrdev = res.data.data.types[0].goods
        // console.log(res.data.data.types[0].goods);
        var resultdev = []
        for (var i = 0; i < atrdev.length; i += 6) {
          resultdev.push(atrdev.slice(i, i + 6));
        }
        this.onethree = resultdev
      } catch (err) {
        console.log('错误');
      }
    },
    // 自有品牌馆
    async createfour () {
      try {
        const res = await index({
          id: 96
        })
        // this.atrfour = res.data.data.types[0].goods.slice(0, 4)
        var atrdev = res.data.data.types[0].goods
        // console.log(res.data.data.types[0].goods);
        var resultdev = []
        for (var i = 0; i < atrdev.length; i += 6) {
          resultdev.push(atrdev.slice(i, i + 6));
        }
        this.onefour = resultdev
      } catch (err) {
        console.log('错误');
      }
    },
    async Hot (id) {
      try {
        const res = await index({
          id: id
        })
        console.log(res.data.data.types);
        this.hot = res.data.data.types[0].goods
      } catch (err) {
        console.log('错误');
      }
    },
    // 跳转下载
    nav (item) {
      if (this.system.wechat) {
        this.show = true
        return false
      } else {
        this.show = false
      }
      if (!this.system.iOS9 && !this.system.android) {
        this.href('https://itunes.apple.com/cn/app/id1542709823?mt=8')
        return false
      }
      if (this.system.iOS) this.href('https://itunes.apple.com/cn/app/id1542709823?mt=8')

    },
    href (uri, blank = true) {
      const a = document.createElement('a')
      a.style.display = 'none'
      a.href = uri
      if (blank) a.setAttribute('target', '_blank')
      document.body.appendChild(a)
      a.click()
      setTimeout(t => {
        document.body.removeChild(a)
      }, 0)
    },
  }
}
</script>

<style scoped lang="less">
.body {
  overflow: hidden;
  min-width: 320px;
  max-width: 750px;
  width: 10rem;
  background: #4e3eef;
  margin: 0 auto;
  line-height: 1.5;
  font-family: Arial, Helvetica;
  .test-enter,
  .test-leave-to {
    opacity: 0;
  }
  .test-enter-to,
  .test-leave {
    opacity: 1;
  }
  .test-enter-active,
  .test-leave-active {
    transition: all 5s;
  }
  .close {
    margin: 0.366667rem auto 0;
    text-align: center;
    font-size: 0.48rem;
    line-height: 1.066667rem;
    color: #ffffff;
    width: 5.333333rem;
    height: 1.066667rem;
    border-radius: 0.533333rem;
    background: -webkit-linear-gradient(top, #ffd82f, #ff7d00);
  }
  .boxed {
    width: 8.453333rem;
    height: 14.373333rem;
    border-radius: 0.266667rem;
    background: transparent;
    .backgrend {
      box-sizing: border-box;
      padding: 0.32rem;
      border-radius: 0.266667rem;
      text-indent: 1em;
      width: 8.453333rem;
      height: 12.373333rem;
      background: #f4f4f4;
      font-size: 0.48rem;
      color: #362c2c;
      overflow: auto;
      .gui {
        width: 2.666667rem;
        font-size: 0.533333rem;
        color: #362c2c;
        font-weight: 600;
        margin: 0.2rem 2.333333rem 0.2rem;
      }
    }
    img {
      display: block;
      position: absolute;
      bottom: 0;
      left: 20%;
      width: 5.44rem;
      height: 1.92rem;
    }
  }
  .banner {
    z-index: 99;
    position: fixed;
    top: 0%;
    width: 10rem;
    height: 2.28rem;
    background: #000000;
    display: flex;
    .imgone {
      display: block;
      margin: auto 0.293333rem;
      width: 0.586667rem;
      height: 0.586667rem;
    }
    .imgtwo {
      display: block;
      margin: auto 0.266667rem;
      width: 1.28rem;
      height: 1.28rem;
    }
    .spanone {
      margin: auto 0.066667rem;
      width: 3.2rem;
      height: 1.453333rem;
      font-size: 0.426667rem;
      color: #ffffff;
      .spantwo {
        font-size: 0.32rem;
        font-size: #9b9b9b;
        color: #9b9b9b;
      }
    }
    .btn {
      width: 1.633333rem;
      height: 0.906667rem;
      background: #ea0462;
      border-radius: 0.133333rem;
      font-size: 0.426667rem;
      color: #ffffff;
      text-align: center;
      line-height: 0.906667rem;
      margin: auto 0.1rem;
    }
  }
  .moy {
    width: 2.746667rem;
    height: 0.613333rem;
    margin: 0.266667rem auto;
    border-radius: 0.4rem;
    font-size: 0.373333rem;
    color: #ff0000;
    text-align: center;
    line-height: 0.61rem;
    border: 0.026667rem solid#FFFFFF;
    background: -webkit-linear-gradient(top, #fcd073, #f6dba4);
  }
  .totop {
    position: fixed;
    width: 1.2rem; /* 40/16 */
    height: 1.2rem;
    border-radius: 1.25rem /* 20/16 */;
    opacity: 0.8;
    background: url("../../assets/ding.png") no-repeat;
    background-size: contain;
    box-shadow: 0 1px 5px 0 #e0e0e0;
    right: 0.125rem; /* 18/16 */
    bottom: 3rem; /* 64/16 */
    z-index: 1100;
    -webkit-transition: opacity 0.5s;
    transition: opacity 0.5s;
  }
  .rigth {
    position: fixed;
    top: 0;
    z-index: 9999;
    width: 10rem;
    height: 30rem;
    background-color: #1e1e1e;
    opacity: 0.8;
  }
  .rigth img {
    width: 8rem;
    height: 4.4rem;
    float: right;
  }
  .header {
    background: url("../../assets/img/anniversary/header.png") no-repeat;
    background-size: contain;
    width: 10rem;
    height: 12.96rem;
    position: relative;
    .tran-img {
      position: absolute;
      top: 27%;
      left: 28%;
      width: 5.253333rem;
      height: 7.546667rem;
    }
    .ling {
      width: 2.426667rem;
      height: 2.64rem;
      position: absolute;
      top: 58%;
      right: 9%;
      animation: mymove 2s infinite;
      -webkit-animation: mymove 2s infinite; /*Safari and Chrome*/
      animation-direction: alternate; /*轮流反向播放动画。*/
      animation-timing-function: ease-in-out; /*动画的速度曲线*/
      /* Safari 和 Chrome */
      -webkit-animation: mymove 2s infinite;
      -webkit-animation-direction: alternate; /*轮流反向播放动画。*/
    }
    .tmg {
      position: absolute;
      bottom: 2%;
      width: 10rem;
      height: 1.813333rem;
    }
    .six {
      width: 10rem;
      height: 5.666667rem;
      position: absolute;
      bottom: -47%;
      margin: 0 auto 0.266667rem;
      border-radius: 0.266667rem;
      display: flex;
      overflow-y: hidden;
      overflow-x: scroll;
      ul {
        li {
          overflow: hidden;
          box-sizing: border-box;
          border: 0.123333rem solid #fdc767;
          background: #fff5e1;
          border-radius: 0.3rem;
          margin-left: 0.26rem;
          width: 2.986667rem;
          height: 4.56rem;
          float: left;
          position: relative;
          img {
            margin-top: 0.166667rem;
            margin-left: 0.06667rem;
            display: block;
            width: 2.6rem;
            height: 2.6rem;
          }
          .boxd {
            position: absolute;
            bottom: 5%;
            left: 8%;
            text-align: center;
            line-height: 0.6rem;
            width: 2.4rem;
            border-radius: 0.4rem;
            background: -webkit-linear-gradient(left, #ff8a32, #faa761);
            height: 0.6rem;
            font-size: 0.373333rem;
            color: #ffffff;
            span {
              font-size: 0.533333rem;
            }
          }
        }
      }
    }
  }
  //3弹窗优惠卷
  .Box-three {
    width: 10rem;
    height: 11.573333rem;
    background: url("../../assets/img/anniversary/t3.png") no-repeat;
    background-size: contain;
    .btn {
      width: 4rem;
      height: 1.04rem;
      border-radius: 0.533333rem;
      margin: 8.8rem auto 0;
      font-size: 0.48rem;
      color: #ffffff;
      font-weight: 600;
      text-align: center;
      line-height: 1.04rem;
      background: #ffb43f;
    }
  }
  //6弹窗优惠卷
  .Box-six {
    width: 10rem;
    height: 16.08rem;
    background: url("../../assets/img/anniversary/t6.png") no-repeat;
    background-size: contain;
    .btn {
      width: 4rem;
      height: 1.04rem;
      border-radius: 0.533333rem;
      margin: 13.3rem auto 0;
      font-size: 0.48rem;
      color: #ffffff;
      font-weight: 600;
      text-align: center;
      line-height: 1.04rem;
      background: #ffb43f;
    }
  }
  // 品牌墙
  .card {
    width: 9.573333rem;
    height: 13.866667rem;
    background: #faf8ff;
    margin: 0.133333rem auto 0.533333rem;
    border-radius: 0.4rem;
    overflow: hidden;
    .four {
      width: 100%;
      height: 1.066667rem;
      background: #e3d8ff;
      display: flex;
      .onespan {
        margin-top: 0.2rem;
        margin-left: 0.633333rem;
        font-weight: 600;
        color: #3a00ce;
        font-size: 0.48rem;
      }
      .twospan {
        margin-top: 0.3rem;
        margin-left: 0.633333rem;
        background: #3a00ce;
        width: 0.036667rem;
        height: 0.533333rem;
      }
      .threespan {
        margin-top: 0.19rem;
        margin-left: 0.7rem;
        font-size: 0.48rem;
        color: #3a00ce;
      }
    }
    .van-swipe {
      width: 9.573333rem;
      // margin-left: 0.24rem;
      overflow: hidden;
    }
    /deep/ .van-swipe-item {
      ul li {
        // box-shadow: 0 0.02rem 0.0016667rem 0.0016667rem #e7e7e7;
        float: left;
        width: 3.013333rem;
        height: 4.1rem;
        overflow: hidden;
        border-radius: 0.266667rem;
        .one-hit {
          margin-top: 0.266667rem;
          margin-left: 0.186667rem;
          width: 3.013333rem;
          height: 4rem;
        }
      }
    }
  }
  .images {
    width: 10rem;
    height: 1.226667rem;
    margin: 0.2rem auto;
  }
  .Title {
    width: 10rem;
    height: 5.093333rem;
    margin-top: -1.166667rem;
  }
  // .shopping {
  //   width: 6.666667rem;
  //   text-align: center;
  //   margin: 0 auto;
  //   font-size: 0.906667rem;
  //   font-weight: 600;
  //   background-image: -webkit-linear-gradient(top, #ffffff, #c7e8ff);
  //   -webkit-background-clip: text;
  //   -webkit-text-fill-color: transparent;
  // }
  .super {
    width: 10rem;
    height: 1.173333rem;
    margin: 5rem auto 0.48rem;
  }
  // 固定店主拉新
  .imgefix {
    position: fixed;
    width: 2.453333rem;
    height: 1.52rem;
    left: 0%;
    top: 4.26rem;
    z-index: 99999;
  }
  // 固定大转盘
  .imgefixd {
    animation: mymove 2s infinite;
    -webkit-animation: mymove 2s infinite; /*Safari and Chrome*/
    animation-direction: alternate; /*轮流反向播放动画。*/
    animation-timing-function: ease-in-out; /*动画的速度曲线*/
    /* Safari 和 Chrome */
    -webkit-animation: mymove 2s infinite;
    -webkit-animation-direction: alternate; /*轮流反向播放动画。*/
    position: fixed;
    width: 1.6rem;
    height: 1.706667rem;
    right: 0%;
    top: 4.26rem;
    z-index: 99;
  }
  // 购物卡
  .shopping-card {
    width: 10rem;
    height: 4.88rem;
    margin: 0 auto 0.666667rem;
    display: flex;
    overflow-y: hidden;
    overflow-x: scroll;
    ul {
      display: flex;
      li {
        margin-left: 0.16rem;
        width: 4.56rem;
        height: 4.88rem;
        border-radius: 0.266667rem;
        background: #ffffff;
        overflow: hidden;
        .Toptext {
          width: 100%;
          height: 0.906667rem;
          background: #fe705c;
          font-size: 0.533333rem;
          color: #ffffff;
          text-align: center;
        }
        .count {
          width: 3.426667rem;
          height: 3.426667rem;
          margin-top: 0.186667rem;
          margin-left: 0.576667rem;
        }
        .money {
          box-sizing: border-box;
          padding-left: 0.466667rem;
          margin: 0 auto 0.16rem;
          width: 2.773333rem;
          height: 0.8rem;
          color: #ffffff;
          font-size: 0.32rem;
          background: url("../../assets/img/sale/shopping.png") no-repeat;
          background-size: contain;
          span {
            font-size: 0.533333rem;
          }
        }
      }
    }
  }
  // 今日预售
  .day {
    width: 9.6rem;
    height: 11.06rem;
    margin: 0.4rem auto;
    background: #fa7698;
    border-radius: 0.266667rem;
    overflow: hidden;
    padding-left: 0.047667rem;
    padding-top: 0.266667rem;
    box-sizing: border-box;
    .day-one {
      width: 100%;
      height: 0.533333rem;
      margin: 0.18rem auto;
      text-align: center;
      font-size: 0.4rem;
      color: #ffffff;
      font-weight: 600;
    }
    .van-swipe {
      width: 9.466667rem;
      // margin-left: 0.24rem;
      overflow: hidden;
    }
    /deep/ .van-swipe-item {
      li:nth-child(2) {
        margin: 0 0.11rem;
      }
      li:nth-child(5) {
        margin: 0 0.11rem;
      }
      ul li {
        // box-shadow: 0 0.02rem 0.0016667rem 0.0016667rem #e7e7e7;
        float: left;
        width: 3.08rem;
        height: 4.533333rem;
        overflow: hidden;
        background: #ffffff;
        margin-bottom: 0.11rem;
        border-radius: 0.266667rem;
        position: relative;
        .one-hit {
          margin-top: 0.166667rem;
          margin-left: 0.226667rem;
          width: 2.62rem;
          height: 2.62rem;
        }
        .text-one {
          font-size: 0.293333rem;
          color: #333333;
          line-height: 0.35rem;
          width: 2.626667rem;
          margin: -0.133333rem auto 0;
          overflow: hidden;
          text-overflow: ellipsis;
          display: -webkit-box;
          -webkit-box-orient: vertical;
          -webkit-line-clamp: 2;
        }
        .money-Hot {
          font-weight: 600;
          margin-top: 0.133333rem;
          margin-left: 0.236667rem;
          font-size: 0.296667rem;
          color: #ff301e;
          span {
            font-size: 0.393333rem;
          }
        }
        .yu {
          position: absolute;
          right: 3%;
          bottom: 4%;
          font-size: 0.266667rem;
          border-radius: 0.266667rem;
          color: #ffffff;
          background: #f63977;
          text-align: center;
          line-height: 0.453333rem;
          width: 1.2rem;
          height: 0.453333rem;
        }
      }
    }
  }
  // 今日必买
  .day {
    width: 9.6rem;
    height: 11.06rem;
    margin: 0.4rem auto;
    background: #fa7698;
    border-radius: 0.266667rem;
    overflow: hidden;
    padding-left: 0.047667rem;
    padding-top: 0.266667rem;
    box-sizing: border-box;
    position: relative;
    .Gsgo {
      position: absolute;
      right: 4%;
      top: 3%;
      font-size: 0.32rem;
      color: #ffffff;
    }
    .day-one {
      width: 100%;
      height: 0.533333rem;
      margin: 0 auto 0.18rem;
      text-align: center;
      font-size: 0.5rem;
      color: #ffffff;
      font-weight: 600;
    }
    .van-swipe {
      width: 9.466667rem;
      // margin-left: 0.24rem;
      overflow: hidden;
    }
    /deep/ .van-swipe-item {
      li:nth-child(2) {
        margin: 0 0.11rem;
      }
      li:nth-child(5) {
        margin: 0 0.11rem;
      }
      ul li {
        // box-shadow: 0 0.02rem 0.0016667rem 0.0016667rem #e7e7e7;
        float: left;
        width: 3.08rem;
        height: 4.533333rem;
        overflow: hidden;
        background: #ffffff;
        margin-bottom: 0.11rem;
        border-radius: 0.266667rem;
        position: relative;
        .one-hit {
          margin-top: 0.166667rem;
          margin-left: 0.226667rem;
          width: 2.62rem;
          height: 2.62rem;
        }
        .text-one {
          font-size: 0.293333rem;
          color: #333333;
          line-height: 0.35rem;
          width: 2.626667rem;
          margin: -0.133333rem auto 0;
          overflow: hidden;
          text-overflow: ellipsis;
          display: -webkit-box;
          -webkit-box-orient: vertical;
          -webkit-line-clamp: 2;
        }
        .money-Hot {
          font-weight: 600;
          margin-top: 0.133333rem;
          margin-left: 0.236667rem;
          font-size: 0.296667rem;
          color: #ff301e;
          span {
            font-size: 0.393333rem;
          }
        }
        .yu {
          position: absolute;
          right: 3%;
          bottom: 4%;
          font-size: 0.266667rem;
          border-radius: 0.266667rem;
          color: #ffffff;
          background: #f63977;
          text-align: center;
          line-height: 0.453333rem;
          width: 1.2rem;
          height: 0.453333rem;
        }
      }
    }
  }
  .consumption {
    width: 10rem;
    ul {
      overflow: hidden;
      li {
        float: left;
        margin-left: 0.2rem;
        margin-bottom: 0.24rem;
        width: 4.693333rem;
        height: 2.56rem;
        border-radius: 0.266667rem;
        background: #ffffff;
        position: relative;
        img {
          width: 1.6rem;
          height: 1.6rem;
          margin-left: 0.24rem;
          margin-top: 0.48rem;
        }
        .text {
          width: 2.24rem;
          height: 1.066667rem;
          margin-top: 0.333333rem;
          margin-right: 0.4rem;
          font-weight: 600;
          font-size: 0.373333rem;
          color: #000000;
          float: right;
          overflow: hidden;
          text-overflow: ellipsis;
          display: -webkit-box;
          -webkit-box-orient: vertical;
          -webkit-line-clamp: 2;
        }
        .moneye {
          position: absolute;
          right: 13%;
          bottom: 17%;
          width: 2.066667rem;
          height: 0.533333rem;
          font-size: 0.48rem;
          color: #fe3b2d;
        }
      }
    }
  }
  // 网红馆
  .we {
    ul {
      li:nth-of-type(1) .Box {
        background: -webkit-linear-gradient(left, #fb86a5, #fc507d);
      }
      li:nth-of-type(2) .Box {
        background: -webkit-linear-gradient(left, #0692f7, #84bff9);
      }
      li:nth-of-type(3) .Box {
        background: -webkit-linear-gradient(left, #68c032, #c6f0a9);
      }
      li:nth-of-type(4) .Box {
        background: -webkit-linear-gradient(left, #feb248, #fbdb99);
      }
    }
  }
  .Box {
    box-sizing: border-box;
    width: 9.466667rem;
    height: 12.206667rem;
    margin: 0 auto 0.4rem;
    overflow: hidden;
    border-radius: 0.266667rem;
    .span-one {
      margin-top: 0.386667rem;
      margin-left: 0.373333rem;
      font-size: 0.48rem;
      color: #ffffff;
      font-weight: 600;
    }
    .span-two {
      float: right;
      margin-top: 0.086667rem;
      margin-right: 0.386667rem;
      font-size: 0.373333rem;
      color: #ffffff;
    }
    .box-one {
      width: 9.466667rem;
      height: 9.6rem;
      margin: 0.233333rem auto 0;
      border-radius: 0.266667rem;
      overflow: hidden;
      .van-swipe {
        width: 9.466667rem;
        // margin-left: 0.24rem;
        overflow: hidden;
      }
      /deep/ .van-swipe-item {
        li:nth-child(2) {
          margin: 0 0.11rem;
        }
        li:nth-child(5) {
          margin: 0 0.11rem;
        }
        ul li {
          // box-shadow: 0 0.02rem 0.0016667rem 0.0016667rem #e7e7e7;
          float: left;
          width: 3.08rem;
          height: 4.533333rem;
          overflow: hidden;
          background: #ffffff;
          margin-bottom: 0.11rem;
          border-radius: 0.266667rem;
          .one-hit {
            margin-top: 0.166667rem;
            margin-left: 0.226667rem;
            width: 2.62rem;
            height: 2.62rem;
          }
          .text-one {
            font-size: 0.293333rem;
            color: #333333;
            line-height: 0.35rem;
            width: 2.626667rem;
            margin: -0.133333rem auto 0;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 2;
          }
          .money-Hot {
            font-weight: 600;
            margin-top: 0.133333rem;
            margin-left: 0.236667rem;
            font-size: 0.296667rem;
            color: #ff301e;
            span {
              font-size: 0.393333rem;
            }
          }
        }
      }
    }
    .mery {
      width: 9.333333rem;
      height: 1.093333rem;
      margin: 0 auto;
      text-align: center;
      line-height: 1.093333rem;
      font-size: 0.426667rem;
      color: #ffffff;
      border-radius: 0.3rem;
      background: rgba(255, 255, 255, 0.2);
    }
  }
  .Box-red {
    width: 9.466667rem;
    margin: 0.346667rem auto;
    ul {
      overflow: hidden;
      li {
        width: 9.466667rem;
        height: 3.36rem;
        margin-bottom: 0.346667rem;
        background: #ffffff;
        border-radius: 0.266667rem;
        position: relative;
        img {
          width: 2.746667rem;
          height: 2.746667rem;
          margin-top: 0.293333rem;
          margin-left: 0.32rem;
        }
        .text {
          float: right;
          width: 5.226667rem;
          height: 1.12rem;
          margin-top: 0.293333rem;
          margin-right: 0.853333rem;
          font-size: 0.426667rem;
          color: #000000;
          line-height: 0.55rem;
          overflow: hidden;
          font-weight: 600;
          text-overflow: ellipsis;
          display: -webkit-box;
          -webkit-box-orient: vertical;
          -webkit-line-clamp: 2;
        }
        .money {
          position: absolute;
          left: 35%;
          bottom: 18%;
          width: 3rem;
          font-weight: 600;
          height: 0.666667rem;
          font-size: 0.373333rem;
          color: #ff301e;
          span {
            font-size: 0.613333rem;
          }
        }
        .Slash {
          position: absolute;
          left: 59%;
          bottom: 12%;
          width: 3rem;
          font-weight: 600;
          height: 0.666667rem;
          font-size: 0.266667rem;
          text-decoration: line-through;
          color: #9c9c9c;
          span {
            font-size: 0.373333rem;
          }
        }
        .goto {
          width: 2.16rem;
          height: 0.906667rem;
          text-align: center;
          line-height: 0.906667rem;
          font-size: 0.426667rem;
          color: #ffffff;
          background: #ff4500;
          border-radius: 0.266667rem;
          position: absolute;
          right: 3%;
          bottom: 14%;
        }
      }
    }
  }
  // tab栏
  .van-tabs--card /deep/ .van-tabs__wrap {
    height: 1.066667rem;
    background: #acc4ff;
    .van-tabs__nav--card {
      border: 0;
      height: 1.066667rem;
      .van-tab.van-tab--active {
        // background: -webkit-linear-gradient(top, #f9aa5e, #b14801);
        // border: 0.026667rem solid #dd7729;
        .van-tab__text--ellipsis {
          font-weight: 600;
        }
      }
    }
  }
  // 主界面
  .one {
    width: 9.466667rem;
    margin: 0 auto;
    overflow: hidden;
    // border-top-left-radius: 0.266667rem;
    // border-top-right-radius: 0.266667rem;
    .add {
      width: 9.466667rem;
      overflow: hidden;
      padding-top: 0.4rem;
      ul li {
        float: left;
        width: 4.56rem;
        height: 6.64rem;
        border-radius: 0.166667rem;
        background: #ffffff;
        margin-bottom: 0.133333rem;
        margin-left: 0.166667rem;
        .img {
          width: 3.493333rem;
          height: 3.173333rem;
          margin-top: 0.773333rem;
          margin-left: 0.506667rem;
        }
        .text {
          margin: 0.206667rem auto 0;
          width: 3.093333rem;
          height: 1.033333rem;
          font-weight: 600;
          font-size: 0.373333rem;
          color: #333333;
          overflow: hidden;
          text-overflow: ellipsis;
          display: -webkit-box;
          -webkit-box-orient: vertical;
          -webkit-line-clamp: 2;
        }
        .money {
          margin: 0.066667rem auto 0;
          width: 3.7rem;
          text-align: center;
          box-sizing: border-box;
          height: 0.666667rem;
          background: #fd0e46;
          border-radius: 0.533333rem;
          font-size: 0.293333rem;
          line-height: 0.666667rem;
          color: #ffffff;
          span {
            font-size: 0.48rem;
          }
        }
      }
    }
    .moy {
      width: 2.746667rem;
      height: 0.613333rem;
      margin: 0.266667rem auto;
      border-radius: 0.4rem;
      font-size: 0.373333rem;
      color: #ff0000;
      text-align: center;
      line-height: 0.61rem;
      border: 0.026667rem solid#FFFFFF;
      background: -webkit-linear-gradient(top, #fcd073, #f6dba4);
    }
    .title {
      margin: 0.133333rem auto;
      width: 9.066667rem;
      height: 0.666667rem;
      color: #e1cfbb;
      text-align: center;
      font-size: 0.48rem;
      letter-spacing: 0.08rem;
    }
  }
  @keyframes mymove {
    0% {
      transform: scale(1); /*开始为原始大小*/
    }
    25% {
      transform: scale(1.1); /*放大1.1倍*/
    }
    50% {
      transform: scale(1);
    }
    75% {
      transform: scale(1.1);
    }
  }
  @-webkit-keyframes mymove /*Safari and Chrome*/ {
    0% {
      transform: scale(1); /*开始为原始大小*/
    }
    25% {
      transform: scale(1.1); /*放大1.1倍*/
    }
    50% {
      transform: scale(1);
    }
    75% {
      transform: scale(1.1);
    }
  }
}
</style>
